@charset "utf-8";

.kh-container {
  width: 100%;
  height: 100%;
}

.kh-side-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 160px;
  height: 100%;
  text-align: center;
  border-right: 1px solid #000;

  .kh-to-logo {
    display: block;
    width: 52px;
    height: 70px;
    margin: 50px auto 120px;
    background-image: url("../../src/blog-img/to-logo.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
  }

  ul {
    a {
      font-size: 18px;
      color: #999;
      display: inline-block;
      margin-bottom: 50px;
      position: relative;

      &:hover {
        color: #000;

        &:after {
          opacity: 1;
          bottom: -10px;
          background-color: #000;
        }
      }

      &:after {
        opacity: 0;
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 20px;
        height: 4px;
        border-radius: 2px;
        background-color: #999;
        transform: translate(-50%, 0);
        transition: all 0.3s;
      }
    }
  }

  .kh-side-nav-actv {
    color: #000;

    &:after {
      opacity: 1;
      bottom: -10px;
      background-color: #000;
    }
  }
}

.kh-content {
  margin: 50px 0 0 160px;
  padding: 0 140px;
}

.kh-small-intro {
  padding-bottom: 20px;
  padding-right: 50px;
  color: #333;
  font-size: 16px;
  font-weight: 200;
  border-bottom: 1px solid #000;

  h2 {
    margin-bottom: 40px;
    color: #000;
    font-size: 40px;
    font-weight: 400;
  }
}


// card-layout
.kh-card-list {
  margin-top: 100px;
  display: flex;
  flex-wrap: wrap;
}

.kh-card {
  width: 31%;
  margin-right: 3%;
  margin-bottom: 80px;
  font-weight: 200;
  box-shadow: 0 0 10px #eee;

  &:nth-child(3n) {
    margin-right: 0;
  }

  .kh-card-img {
    width: 100%;
    height:calc(100% - 220px);
    background-color: red;

    a {
      display: block;
      height: 100%;
      width: 100%;
      overflow: hidden;

      &:hover {

        img {
          transform: scale(1.06);
        }
      }

      img {
        width: 100%;
        vertical-align: top;
        transition: all .5s;
      }
    }
  }

  .kh-card-title {
    margin: 30px 0 20px 0;
    padding: 0 20px;
    font-size: 18px;
    color: #999;

    a {
      color: #000;
      display: block;
      text-overflow: ellipsis;
      white-space: nowrap;
      overflow: hidden;
      font-size: 22px;
      font-weight: 400;
      margin: 0 0 8px 0;
    }
  }

  .kh-card-eye {
    padding: 0 20px;
    font-size: 16px;
    color: #999;

    p {
      position: relative;
      padding-left: 32px;

      &:after {
        content: '';
        position: absolute;
        top: 2px;
        left: 0;
        width: 24px;
        height: 16px;
        background-image: url("../../src/blog-img/eye.png");
        background-repeat: no-repeat;
        background-size: contain;
        background-position: center;
      }
    }
  }

  .kh-card-sign {
    color: #666;
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding: 20px 20px 30px;
    border-top: 2px solid #e6e6e6;

    p {
      &:first-child {
        color: #333;
        max-width: 160px;
        text-overflow: ellipsis;
        white-space: nowrap;
        overflow: hidden;
      }
    }
  }
}


@media (max-width: 1350px) {
  .kh-card-adapt {
    width: 46%;
    margin-right: 8%;

    &:nth-child(2n) {
      margin-right: 0;
    }

    &:nth-child(2n - 1) {
      margin-right: 8%;
    }
  }
}

.kh-view-tip {
  height: 2px;
  width: 100%;
  margin-bottom: 80px;
  background-color: red;
}


























